package com.example.demo.day.config.learn.design.order.x1;

//卖出股票的具体指令类
public class SellOrder implements Order {

    private Stock stock;

    public SellOrder(Stock stock) {
        this.stock = stock;
    }

    @Override
    public void execute() {
        System.out.println("Sell stock: name = " + stock.getName()
                + ", quantity = " + stock.getQuantity());
    }
}
